<template>
	<view class="itemBox"  @click="clickCopy" >
		<view class="content">
			{{itemConetnt}}
		</view>
	</view>
</template>

<script>
	import {showSuccess} from '@/config/request.js'
	export default{
		props:{
			itemConetnt:{
				type:String,
				default:"aaaa",
				required:true
			}
		},
		onLoad() {
			
		},
		data() {
			return {
				
			};
		},
		methods:{
			clickCopy(){
				uni.setClipboardData({
				    data: this.itemConetnt,
				    success: function () {
				        showSuccess('复制成功!')
				    }
				});
			}
		}
	}
</script>

<style lang="less" scoped>
	.itemBox{
		margin: 20px;
		box-sizing: border-box;
		padding: 5px;
		background: rgba(236, 236, 236, 1);
		box-shadow: 0px 3px 7px 1px rgba(0, 0, 0, 0.5);
		.content{
		}
	}
</style>
